package com.czxy.demo01;

import java.util.Random;

public class Test05 {
    public static void main(String[] args) {
        show();
    }
    public static void show(){
        int num = new Random().nextInt(9999 - 1) + 1;
        String s = String.valueOf(num);
        if(s.length()==1){
            s="000"+s;
        }else if(s.length()==2){
            s="00"+s;
        }else if(s.length()==3){
            s="0"+s;
        }


        System.out.println(s);
    }
}
